package com.kayak.emailWorks.quartz;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import com.kayak.emailWorks.quartz.travelDays.FillTravelDaysNotice;
import com.kayak.emailWorks.quartz.travelDays.GetTravelDaysResult;
import com.kayak.emailWorks.quartz.travelDays.SendTravelDaysSum;




@Component
public class EmailTask {
	protected final static Logger log = LoggerFactory.getLogger(EmailTask.class);	
	/**
	 * 发送邮件给在职员工
	 */
	public void sendFillTravelDaysNoticeEmail() throws Exception{
		FillTravelDaysNotice.doIt();		
	}
	/**
	 * 收取员工们填写好的邮件并处理
	 */	
	public void receiveFillTravelDaysNoticeEmailResult() throws Exception {
		GetTravelDaysResult.doIt();
	}
	/**
	 * 将处理结果发送给特定员工
	 */
	public void sendTravelDaysSum() throws Exception{
		SendTravelDaysSum.doIt();
	}
}